package com.yz.group5.med_booking.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

//Java 中实体类，映射数据库中的department表
@Data
@TableName("department")
public class Department {
    @TableId(type = IdType.AUTO) //默认使用数据库中的表的设置
    private  Integer id;  //int ==> Integer  bigInt ==> Long
    private String name;
    private String description;
    private Integer status;
    private String createdAt;
    private String updatedAt;
}
